/** 系统用户类型 */
export interface UserResp {
  id: string
  username: string
  nickname: string
  avatar: string
  gender: number
  email: string
  phone: string
  description: string
  status: 0 | 1
  isSystem?: boolean
  createUserString: string
  createTime: string
  updateUserString: string
  updateTime: string
  deptId: string
  deptName: string
  roleIds: Array<number>
  roleNames: Array<string>
  disabled: boolean
}

export type UserDetailResp = UserResp & {
  pwdResetTime?: string
}

export interface UserImportResp {
  importKey: string
  totalRows: number
  validRows: number
  duplicateUserRows: number
  duplicateEmailRows: number
  duplicatePhoneRows: number
}

export interface UserQuery {
  keyword?: string
  status?: number
  deptId?: string
  userIds?: Array<string>
  datetimeRange?: Array<string>
  sortField?: string
  sortOrder?: string
}

export interface UserPageQuery extends UserQuery, PageQuery {}

/** 绑定三方账号信息 */
export interface BindThirdpartyAccountRes {
  source: string
  description: string
}
